﻿using System.Threading;
using System.Threading.Tasks;

namespace K9Nano.Authorization
{
    public interface IRbacChecker
    {
        ValueTask<bool> ValidateAsync(IApiResource resource, CancellationToken cancellation);

        bool RequireScope(string scope);
    }
}